package cn.kgc.javaweb.service.impl;

import cn.kgc.javaweb.dao.RoleDao;
import cn.kgc.javaweb.dao.impl.RoleDaoImpl;
import cn.kgc.javaweb.entity.Role;
import cn.kgc.javaweb.service.RoleService;
import cn.kgc.javaweb.utils.ResponseResultUtil;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/6/9
 */
public class RoleServiceImpl implements RoleService {

    private RoleDao roleDao = new RoleDaoImpl();

    @Override
    public List<Role> selectAll() {
        List<Role> roles = roleDao.selectAll();
        return roles;
    }
}
